package org.example.integration.adapter.customer;

import org.example.customer.api.SdkCustomerDTO;
import org.example.order.domain.Customer;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CustomerConverter {
    CustomerConverter INSTANCE = Mappers.getMapper(CustomerConverter.class);

    Customer convert(SdkCustomerDTO sdkCustomerDTO);

    List<Customer> convert(List<SdkCustomerDTO> sdkCustomerDTOList);
}
